<ice:panelGroup style="height: 300px"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ice="http://www.icesoft.com/icefaces/component"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets">
    <!--<ice:outputText value="Accueil" />-->

    <!--Action="http://ws.red.sfr.fr/red-ws/red-b2c/resources/sms/send"-->



    <!--
                   <ice:panelGrid>
                       <ice:outputLink value="scripts/xml.zip">Download</ice:outputLink>
                   </ice:panelGrid>






    <form method="get" action="http://www.google.fr" >

				<input type="hidden" size="20" name="responseType" value="xml"/><br/>

 	<input type="hidden" size="20" name="token" value="d022ef110490bb3cc2be414f28f93353"/><br/>

            <ice:outputLabel value="N° Tél :"/>  		<input size="12" name="to" value="0613825828"/><br/>

 		<input type="hidden" size="2" name="type" value="PhoneNumber"/><br/>

    <ice:outputLabel value="Message :"/> 		<input size="100" name="msg" value="http://www.bonjourmadame.fr/"/><br/>


		<input type="submit" value="Envoyer"/>
    <br/>


    </form>
    <iframe name="framesms" height="100" width="100" />
    -->

    <ice:commandButton value="Relancer" action="#{mailController.afficherRelanceQuestionnaire}"/>
    <br/>
    <ice:dataTable var="questionnaire" value="#{mailController.dataModelQuestionnaireARelancer}"
                   styleClass="positionPanelContainer" scrollable="true"
                   columnWidths="270px,30px" scrollHeight="100px">                        

        <ice:column style="padding-right: 285px;">          
            <ice:outputLabel value="#{questionnaire.titre}"/>
        </ice:column>

        <ice:column>
            <ice:commandButton style="float: right" image="/resources/images/icone_diffuser.png" alt="Afficher les relance possible du questionnaire"
                               action="#{mailController.afficherRelanceUtilisateur}" value="Affiche Relance">
                <f:setPropertyActionListener target="#{mailController.questionnaireRelancer}" value="#{questionnaire}"/>
            </ice:commandButton>
        </ice:column>

    </ice:dataTable>

    <ice:dataTable var="utilisateur" value="#{mailController.listUtilisateurRelance}"
                   styleClass="positionPanelContainer" scrollable="true"
                   columnWidths="270px,30px" scrollHeight="100px">

        <ice:column style="padding-right: 71px;">
            <ice:outputLabel value="#{mailController.questionnaireRelancer.titre}"/>
        </ice:column>

        <ice:column style="padding-right: 71px;">
            <ice:outputLabel value="#{utilisateur.nom}"/>
        </ice:column>

        <ice:column style="padding-right: 71px;">
            <ice:outputLabel value="#{utilisateur.prenom}"/>
        </ice:column>

        <ice:column style="padding-right: 72px;">
            <ice:outputLabel value="#{utilisateur.mail}"/>
        </ice:column>

        <ice:column>
            <ice:commandButton style="float: right" image="/resources/images/icone_diffuser.png" alt="Relancer Questionnaire"
                               action="#{mailController.relancerQuestionnaireSMS}" value="Relancer via SMS">
                <f:setPropertyActionListener target="#{mailController.utilisateurRelancer}" value="#{utilisateur}"/>
            </ice:commandButton>
        </ice:column>

    </ice:dataTable>


    <ice:panelGrid columns="5">
        <ice:outputLabel value="N° Tél : "/>
        <ice:inputText id="aaa" value="#{mailController.numTel}" partialSubmit="true" size="25" />

        <ice:outputLabel value="Message : "/>
        <ice:inputText size="82" value="#{mailController.messageSMS}" partialSubmit="true"/>

        <ice:outputLink id="lien" value="http://ws.red.sfr.fr/red-ws/red-b2c/resources/sms/send" target="framesms" >
            <f:ajax  execute="@this" render="aaa"/>
            <ice:graphicImage url="/resources/images/icone_diffuser.png" />
            <f:param name="responseType" value="xml"/>
            <f:param name="token" value="d022ef110490bb3cc2be414f28f93353"/>
            <f:param name="to" value="#{mailController.numTel}"/>
            <f:param name="type" value="PhoneNumber"/>
            <f:param name="msg" value="#{mailController.messageSMS}"/>
        </ice:outputLink>

    </ice:panelGrid>





    <br/>
    <iframe name="framesms" height="100" width="100" style="visibility: hidden"/><!--style="visibility: hidden"/>-->    


</ice:panelGroup>
